<html>
<script>

var a = ["1","2","3","4"];

var b = a.join("\n");

console.log(b);
</script>
</html>